const env = require('dotenv');

const config = env.config();

module.exports = (key, defaultData) => {
    return config.parsed[key] !== undefined ? config.parsed[key] : defaultData;
};